﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Generic
{
   public  static  class GenericMethod
    {
        public  static  void Show<T>(T paramter) where T:Person,IWork
        {
            Console.WriteLine("This is {0},parameter={1},type={2}", typeof(GenericMethod), paramter.GetType().Name, paramter.ToString());
            Console.WriteLine("id={0} name={1}", paramter.ID, paramter.Name);
            paramter.Hi();
            paramter.Work();
        }

        public static void ShowPeople<T>() where T : Person, IWork
        {

        }
    }
}
